package com.cndw.kungfu.vo.battlevo;

import com.cndw.kungfu.domain.Pet;
import com.cndw.kungfu.model.battle.FighterCrossPet;

public class BattlePetVO {
	// 唯一id
	private long uniqueId;
	// 名称
	private String name;
	/**
	 * 宠物原型
	 */
	private int modeId;

	private String icon;
	/**
	 * 等级
	 */
	private int level;
	private int hp;// 血
	private int mp;// 蓝
	private int maxHp;
	private int maxMp;

	private long playerId;

	public BattlePetVO() {

	}

	public BattlePetVO(Pet pet) {
		uniqueId = pet.getId();
		playerId = pet.getPlayerId();
		name = pet.getName();
		modeId = pet.getModeId();
		level = pet.getLevel();
		hp = pet.getHp();
		mp = pet.getMp();
		maxHp = pet.getMaxHp();
		maxMp = pet.getMaxMp();
		icon = pet.getMode().getIcon();
	}

	public BattlePetVO(FighterCrossPet crossPet) {
		uniqueId = crossPet.getUniqueId();
		playerId = crossPet.getPlayerId();
		name = crossPet.getName();
		modeId = crossPet.getModeId();
		level = crossPet.getLevel();
		hp = crossPet.getHp();
		mp = crossPet.getMp();
		maxHp = crossPet.getMaxHp();
		maxMp = crossPet.getMaxMp();
		icon = crossPet.getIcon();
	}

	public long getUniqueId() {
		return uniqueId;
	}

	public void setUniqueId(long uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getModeId() {
		return modeId;
	}

	public void setModeId(int modeId) {
		this.modeId = modeId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getHp() {
		return hp;
	}

	public void setHp(int hp) {
		this.hp = hp;
	}

	public int getMp() {
		return mp;
	}

	public void setMp(int mp) {
		this.mp = mp;
	}

	public int getMaxHp() {
		return maxHp;
	}

	public void setMaxHp(int maxHp) {
		this.maxHp = maxHp;
	}

	public int getMaxMp() {
		return maxMp;
	}

	public void setMaxMp(int maxMp) {
		this.maxMp = maxMp;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

}
